﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;

namespace RepositoryPattern.Infrastructure
{
    public interface IRepository<T> : IDisposable where T : class
    {
        IQueryable<T> All();
        IQueryable<T> Filter(Expression<Func<T, bool>> filterExpression);

        T Create(T t);
    }
}